const db = require("../../middleware/db");
const Sequelize = require("sequelize");
//角色表
module.exports = sys_role = db.define("sys_role", {
  name: {
    type: Sequelize.STRING(100),
    allowNull: false,
    defaultValue: "",
    comment: "角色名称",
  },
  // 0 普通角色 1 系统角色
  type: {
    type: Sequelize.INTEGER(1),
    allowNull: false,
    defaultValue: "0",
    comment: "角色类型",
  },
  menus: {
    type: Sequelize.TEXT,
    allowNull: false,
    defaultValue: "",
    comment: "权限菜单",
  },
});

// sys_role.sync({ force: false })
